#ifndef MEEGIMSETTINGS_H
#define MEEGIMSETTINGS_H

#include "mysettings.h"
#include "accountsitemmodel.h"
#include "accountslistmodel.h"

#include <QtDeclarative>

class MeegIMSettings : public MySettings
{
    Q_OBJECT

    QDeclarativeView *qmlObj;
    AccountsListModel *alm;

    QString jid_indx0;
    QString pass_indx0;
    bool dflt_indx0;

public:
    explicit MeegIMSettings(QObject *parent);

    void getDefaultAccount();

    Q_INVOKABLE void initListOfAccounts();
    Q_INVOKABLE void setAccount( QString _jid, QString _pass, bool isDflt );
    Q_INVOKABLE void removeAccount( QString _jid );

    Q_INVOKABLE QString getJid_indx0() { return jid_indx0; }
    Q_INVOKABLE QString getPass_indx0() { return pass_indx0; }
    Q_INVOKABLE bool getDef_indx0() { return dflt_indx0; }

signals:

public slots:

};

#endif // MEEGIMSETTINGS_H
